/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
package com.wealth.bbs.service;

import java.util.List;

import com.wealth.bbs.entity.Topic;
import com.wealth.bbs.vo.TopicVO;

import iaas.service.IBaseService;
import iaas.utils.ResultObject;

/**
 * @author zhu
 * 
 * modify by chan  on 2016-09-13 新增方法 
 * 主题列表 加载主题 发表主题 操作主题 主题详情
 * 
 */

public interface ITopicService extends IBaseService<Topic> {

	//加载主题
	public List<TopicVO> ajaxTopicVO(Long boardid,Long memberid,Integer isRecommend,Integer index,Integer offset) throws Exception;
	
	//发表主题
	public ResultObject saveTopic(Topic topic,String picurls[],Long memberId) throws Exception;
		
	//主题操作（赞/踩）
	public ResultObject appraiseTopic(Long topicid,Long memberid,Integer appraiseType,Integer status) throws Exception;
	
	//主题详情
	public TopicVO getTopicVO(Long topicid,Long memberid) throws Exception;

	public void saveTopic(Topic topic) throws Exception;
	
	public void updateTopic(Topic topic) throws Exception;


}
